<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>首页</h1>
		<p>由：<a href="" id="loginPage"></a>登录</p>
		<button onclick="logout()">退出</button>
	</body>
</html>
<script type="text/javascript">
	document.getElementById("loginPage").innerText = localStorage.loginPage;
	function logout(){
		location.href="login.html";
	}
</script>
